


import { createRouter, createWebHashHistory } from "vue-router";


const routes = [
  { path: "/", redirect: '/login' },
  { path: '/login', component: ()=> import('../components/Login.vue')},
  { path: '/main', component: () => import('../components/Main.vue'),
    children: [
        {
            path:'addUser',
            component: () => import('../components/AddUser.vue')
          }, {
          path:'addModle',
          component: () => import('../components/AddModle.vue')
          }, {
          path:'userList',
          component: () => import('../components/UserList.vue')
        }, {
          path:'addUserModel',
          component: () => import('../components/AddModle.vue')
        }, {
          path:'addScore',
          component: () => import('../components/AddScore.vue')
        }, {
          path:'addModelValue',
          component: () => import('../components/AddModelValue.vue')
        }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;